import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import {resolve} from "path"; // 主要用于alias文件路径别名
import vueJsx from '@vitejs/plugin-vue-jsx'

function pathResolve(dir) {
  return resolve(__dirname, dir);
}

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue(),vueJsx()],
  resolve: {
    alias: {
        "@": pathResolve("./src")
    }
},
})
